<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
	
//	   	var a=setTimeout(function(){
//			console.log('settimeout');
//		},2000)
//	   	console.log(a);
//	   	clearTimeout(a);

       var num=0;
	   	var a=setInterval(function(){
			console.log('setInterval');
			num++;
			if(num==5){
				clearInterval(a);
			}
		},2000)
		
		
		
		
	</script>
</html>
